<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_laidinhe");
$kask=$yhendus->prepare("SELECT id, kassinimi, toon FROM kassid");
$kask->bind_result($id, $kassinimi, $toon);
$kask->execute();
?>
<!doctype html>
<html>
	<head>
		<title>Kassileht</title>
	</head>
	<body>
		<?php
			while($kask->fetch()){
				echo"<h1 style='color: $toon'>$kassinimi</h1>";
			}
		$yhendus->close();
		?>
	</body>
</html>